const { exec } = require('child_process');
const path = require('path');

// 根据操作系统选择合适的命令
const folderPath = path.resolve(__dirname, 'dist_electron');
if (process.platform === 'win32') {
    // Windows
    exec(`explorer "${folderPath}"`);
} else if (process.platform === 'darwin') {
    // macOS
    exec(`open "${folderPath}"`);
} else {
    // Linux或其他Unix系统
    exec(`xdg-open "${folderPath}"`);
}